package com.tcl.aota.admin.controller;

import com.tcl.aota.admin.dto.Result;
import com.tcl.aota.common.constants.Constants;
import com.tcl.aota.manage.OsManage;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author kelong
 * @date 6/9/15
 */
@Controller
public class OsController {
    @Resource
    private OsManage osManage;

    @RequestMapping(value = "/os/list", method = RequestMethod.GET)
    @ResponseBody
    public Result list() {
        return Result.get(osManage.selectAll(), Constants.Common.SUCCESS);
    }
}
